x11: Detect single-touch touchscreens as GDK_SOURCE_TOUCHSCREEN
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 30 Oct 2015 13:10:19 +0000 (14:10 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 3 Nov 2015 12:07:12 +0000 (07:07 -0500)
commit29dd395b7a5b8af0af55c12763e470f1daec287b
tree0a64b225298e5a56ac5e08987eb319f480e9bbb3
parentb3b4282beb9930b3d1688ff19f8016f35998427d
x11: Detect single-touch touchscreens as GDK_SOURCE_TOUCHSCREEN

Those won't have ABS_MT_* axes, so won't be reported has having
XITouchClassInfo. Fallback on these to checking whether abs x/y axes are
available. After the Wacom checks, any remaining device with absolute axes
should be touchscreens, and GDK_SOURCE_MOUSE does indeed just make sense on
devices with relative axes.

https://bugzilla.gnome.org/show_bug.cgi?id=757358
gdk/x11/gdkdevicemanager-xi2.c